<template>
	<view class="notice-container">
		<view class="notice-box" v-for="(item,index) in noticeList" :key="index">
			<view class="box-head">
				<span>{{item.title}}</span>
				<image :src="item.imgUrl"></image>
				<span>{{item.date}}</span>
			</view>
			<view class="box-content">
				<view class="content">
					{{item.content}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "pages-home-repairNotebook",
		data() {
			return {
				noticeList:[
					{
						title: '解决屏幕太脏问题 只需三招',
						imgUrl: '../../static/video.png',
						date: '2022-11-8',
						content: '现如今，手机是我们接触最多的物品，每天在触碰手机的次数也是数不胜数。那么，在运用手机的过程中，手指在屏幕上划划点点，弄脏、弄花、弄油腻腻了怎么办？是不是很头疼呢….'
					},
					{
						title: '手机进水发热如何处理',
						imgUrl: '../../static/PDF.png',
						date: '2022-11-8',
						content: '说到手机，现在已让大多数人做到机不可失了!工作生活都离不开，上吸收剂要带着;吃饭也要刷刷资讯用毛巾、棉签等吸水物质快速擦拭手机耳机孔，充电口等位置，放在通风处3-5个小时….'
					},
					{
						title: '解决太干净问题 只需一百招',
						imgUrl: '../../static/DOC.png',
						date: '2022-11-8',
						content: '现如今，手机是我们接触最多的物品，每天在触碰手机的次数也是数不胜数。那么，在运用手机的过程中，手指在屏幕上划划点点，弄脏、弄花、弄油腻腻了怎么办？是不是很头疼呢….'
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
	.notice-container {
		width: 100%;
		height: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		
		.notice-box {
			width: 90%;
			height: 120px;
			margin-bottom: 10px;
			background-color: #ffffff;
			
			.box-head {
				height: 30%;
				width: 100%;
				display: flex;
				align-items: center;
				position: relative;

				& span:nth-of-type(1) {
					font-weight: bold;
					font-size: 14px;
					margin-left: 5%;
				}
				
				image {
					width: 11px;
					height: 13px;
					margin-left: 5px;
					margin-top: 2px;
				}
				
				& span:nth-of-type(2) {
					font-size: 14px;
					background: #E9F6FE;
					color: #4091D7;
					position: absolute;
					right: 0;
					top: 0;
					height: 80%;
					width: 35%;
					text-align: center;
				}
			}
			
			.box-content {
				height: 70%;
				width: 100%;
				font-size: 12px;
				color: #8C8C8C;
				display: flex;
				justify-content: center;
				.content {
					height: 80%;
					width: 90%;
				}
			}
		}
	}
	

</style>
